/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springmvcstudy.mbean;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 *
 * @author winnie
 */
@Service
@Lazy(false)
public class Counter implements ICounterMBean {

    @Override
    public void resetCounter() {
        AppCounter.reset();
    }

    @Override
    public int getCurrentCount() {
        return AppCounter.getCurrentCount();
    }

    @Override
    public void setCurrentCount(int wishCount) {
        AppCounter.arbitarySet(wishCount);
    }

    @Override
    public void count() {
        AppCounter.count();
    }
    
    
}
